package com.mall.coupon.server.mapper;


import com.mall.coupon.common.domain.domain.Coupon;
import com.mall.coupon.common.domain.domain.UserCouponMiddle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName CouponMapper
 * @Description 描述
 * @Author Qiu Feng
 * @Date 2025/1/13 14:42
 */
@Mapper
public interface CouponMapper {


    void userCouponAdd(UserCouponMiddle userCouponMiddle);

    Coupon selectCouponById(Long couponId);

    List<UserCouponMiddle> userCouponMiddleList();

//    UserCouponMiddle selectUserIdAndCouponId(@Param("userId") Long userId, @Param("couponId") Long couponId);

    void updateUserCouponMiddleStatus(Integer id);

    List<Coupon> settlementCouponList();
}
